/*
 *  find
 *  Finds the first item in an array where the callback function returns true
 */
objx.requires("objx.each", "objx.find");

objx.fn.find = function(func){

    var foundObj = null;
    
    this.each(function(item){
    
        if (func.apply(this, arguments)){
            foundObj = item;
            return false;
        }
    
    });

    return objx(foundObj);

};

objx.provides("objx.find");